package com.kang.scheduling;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class MyScheduling {

//    @Scheduled(fixedRate = 2000)  1000为1秒
//    public void testScheduling() {
//        System.out.println("测试定时任务");
//    }

}
